package com.lagou.edu.controller;

import com.lagou.edu.service.IMailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author 赵虎
 * @date 2021/2/23 9:56 上午
 */
@RestController
@RequestMapping("/email")
public class MailController {

    @Autowired
    private IMailService iMailService;

    @GetMapping( "/{mail}/{code}")
    public Boolean sendMailCode(@PathVariable("mail") String mail, @PathVariable("code") String code) {
        return iMailService.sendMailCode(mail, code);
    }
}
